#ifndef IUSERPROXY_H
#define IUSERPROXY_H
#include <QObject>
#include <QMap>
#include <QDialog>
struct UserInfo{
    QString userAccount;//账号
    QString userName;//真实姓名
    QString userPass;//密码
    QString userNick;//昵称
    QString userRole;
    QString userRight;
    QString userMail;
    QString userPhone;
    QString userToken;
    QString userAvatar;//头像
    int userLoginCount;
    QString loginErro;
    bool isLogined;
    bool isRegistered;
};

class Q_DECL_EXPORT IUserProxy
{
public:
    virtual ~IUserProxy(){};
    virtual UserInfo* login(QString userName,QString userPass) = 0;
    virtual QDialog* getLoginDialog(QWidget *parent,UserInfo *userInfo) = 0;
    virtual QDialog* getRegisterDialog(QWidget *parent,UserInfo *userInfo) = 0;
};
#endif // IUSERPROXY_H
